package oop.core.med;
import oop.core.Updateable;
import oop.core.entity.Avatar;
import oop.core.entity.Entity;
import oop.core.entity.MerchantNPC;
import oop.core.entity.NPC;
import oop.core.view.NPCInteractionPopupMenu;

public class InteractionMediator {

	private Avatar avatar;
	private TransactionMediator transactionMediator;
	
	public InteractionMediator(Avatar avatar, TransactionMediator transactionMediator){
		this.avatar = avatar;
		this.transactionMediator = transactionMediator;
	}

	public void interact(NPC npc)
	{
		NPCInteractionPopupMenu menu = new NPCInteractionPopupMenu(this, npc);
		menu.setLocation(100+npc.getXLoc()*40, 100+npc.getYLoc()*40);
		menu.setVisible(true);
	}
	public void talk(NPC npc)
	{
		npc.talk();
	}
	
	public void talk(MerchantNPC merchantNpc)
	{
		transactionMediator.startTransaction(merchantNpc);
	}
	public void attack(Entity e)
	{
		
	}
	public void useItem(Entity e)
	{
		
	}
	public void useInteractiveSkill(Entity e)
	{
		
	}
	
}


